Pull a rabbit out of (someone's) hat
Translation of "pull a rabbit out of (someone's) hat" into Russian
pull a rabbit out of (someone's) hat
достать кролика из шляпы (совершить неожиданный трюк, найти выход из сложной ситуации)
When the team was losing, the coach had to pull a rabbit out of his hat to win the game.
Когда команда проигрывала, тренеру пришлось достать кролика из шляпы, чтобы выиграть игру.